﻿@model CloudFranceTriple.WebRole.Models.RegisterModel
@{
    ViewBag.Title = CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterTitle;
}
<div class="content-padding">
    <h1>@ViewBag.Title.</h1>
    <br />
    <h2>@CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterTitle2</h2>

    @using (Html.BeginForm(new { area = "" }))
    {
        @Html.AntiForgeryToken()
        @Html.ValidationSummary()

        <fieldset>
            <legend>@CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterTitle2</legend>

            <input type="hidden" id="Culture" name="Culture" value="fr-fr" />
            <input type="hidden" id="Theming" name="Theming" value="default" />

            <div class="editor-label">
                @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterBirthday
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Birthday, "TemplateUserDate")
                @Html.ValidationMessageFor(model => model.Birthday)
            </div>

            <div class="editor-label">
                @CloudFranceTriple.WebRole.Properties.Resources.LoginUserName
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.UserName)
                @Html.ValidationMessageFor(model => model.UserName)
            </div>

            <div class="editor-label">
                @CloudFranceTriple.WebRole.Properties.Resources.LoginPassword
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Password)
                @Html.ValidationMessageFor(model => model.Password)
            </div>

            <div class="editor-label">
                @CloudFranceTriple.WebRole.Properties.Resources.AccountConfirmPassword
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ConfirmPassword)
                @Html.ValidationMessageFor(model => model.ConfirmPassword)
            </div>

            <div class="editor-label">
                @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterEmail
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Email)
                @Html.ValidationMessageFor(model => model.Email)
            </div>

            <div class="editor-label">
                <a href="https://fr.gravatar.com/" target="_blank">
                    @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterGravatar
                </a>
                <br />
                <a href="http://battlelog.battlefield.com/bf3/fr/profile/edit/" target="_blank">
                    @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterGravatar2
                </a>
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Gravatar)
                @Html.ValidationMessageFor(model => model.Gravatar)
            </div>

            <div class="editor-label">
                @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterLocation
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Location)
                @Html.ValidationMessageFor(model => model.Location)
            </div>

            <div class="editor-label">
                @CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterTimeZone
            </div>
            <div class="editor-field">
                @Html.DropDownList("TimeZone",String.Empty)
                @Html.ValidationMessageFor(model => model.TimeZone)
            </div>

            <br />

            <input type="submit" 
                value="@CloudFranceTriple.WebRole.Properties.Resources.AccountCreateButton" />
            <br />
            <br />
        </fieldset>
    }
    @section Scripts {
        @Scripts.Render("~/bundles/jqueryval")
    }
</div>
